package com.yami.shop.user.common.dao;

import com.yami.shop.user.common.model.UserGasRecord;
import com.yami.shop.user.common.model.UserGasRecordExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserGasRecordMapper {
    long countByExample(UserGasRecordExample example);

    int deleteByExample(UserGasRecordExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(UserGasRecord record);

    int insertSelective(UserGasRecord record);

    List<UserGasRecord> selectByExample(UserGasRecordExample example);

    UserGasRecord selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") UserGasRecord record, @Param("example") UserGasRecordExample example);

    int updateByExample(@Param("record") UserGasRecord record, @Param("example") UserGasRecordExample example);

    int updateByPrimaryKeySelective(UserGasRecord record);

    int updateByPrimaryKey(UserGasRecord record);

    List<UserGasRecord> selectByMonth(@Param("year") String year, @Param("month") String month, @Param("userId") String userId);
}